import request from '@/router/axios'
import { baseUrl } from '../baseUrl'

export const getDoctorList = (page, size, params) => {
  return request({
    url: baseUrl + '/doctor',
    method: 'get',
    params: {
      ...params,
      page,
      size
    }
  })
}

export const getTopicDetail = (row) => {
  return request({
    url: baseUrl + `/doctor/${id}`,
    method: 'get',
    data: row
  })
}

export const approve = (doctorId) => {
  return request({
    url: baseUrl + `/wxuser/approve-doctor/${doctorId}`,
    method: 'put'
  })
}
export const reject = (doctorId) => {
  return request({
    url: baseUrl + `/wxuser/reject-doctor/${doctorId}`,
    method: 'put'
  })
}
